package com.xdcplus.web.mapper.wip;

import com.xdcplus.mp.mapper.IBaseMapper;
import com.xdcplus.web.common.pojo.entity.wip.WipMarkingBox;
import com.xdcplus.web.common.pojo.query.wip.WipMarkingPrdQuery;
import com.xdcplus.web.common.pojo.vo.wip.WipMarkingPrdDetailVO;
import com.xdcplus.web.common.pojo.vo.wip.WipMarkingTraceVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 打标单片表(WipMarkingPrd)表数据库访问层
 *
 * @author Devin.sang
 * @since 2023-05-15 22:05:44
 */
public interface WipMarkingBoxMapper extends IBaseMapper<WipMarkingBox> {

    /**
     * 查询打标单片表(WipMarkingPrd)
     *
     * @param wipMarkingPrdQuery 打标单片表(WipMarkingPrd)查询
     * @return {@link List< WipMarkingBox >}
     */
    List<WipMarkingBox> queryWipMarkingPrd(WipMarkingPrdQuery wipMarkingPrdQuery);
    
    /**
    * @Description 按照片编号查询追溯
    * @Author Devin.sang
    * @Date  2023/5/18 15:34
    */
    List<WipMarkingPrdDetailVO> findWipMarkingPrd(
            @Param("pagePrdCodes") List<String> pagePrdCodes);

    /**
    * @Description 查询分页ids
    * @Author Devin.sang
    * @Date  2023/5/16 21:07
    */
    List<String> traceWipMarkingPrd(@Param("markingId") Long markingIdFk, @Param("prdCode") String prdCode);

    /**
    * @Description 按单片编号查询追溯信息
    * @Author Devin.sang
    * @Date  2023/5/17 18:09
    */
    List<WipMarkingTraceVO> getTraceByPrdCodes(@Param("prdCodes") List<String> prdCodes);

    /**
    * @Description 查询标记片已开始流转的记录
    * @Author Devin.sang
    * @Date  2023/5/18 16:08
    */
    List<Long> findMarkingForPrdProcess();
    
    
    /**
    * @Description 为结批的marking 花篮
    * @Author Devin.sang
    * @Date  2023/6/16 11:21
    */
    List<String> queryBoxCodeByNoOverMarking();

    
}
